package com.powergisol.core.model;

public class Edge {
    /**
     * 边的起始点
     */
    private PointWithIndex pointStart;
    /**
     * 边的结束点
     */
    private PointWithIndex pointEnd;
    /**
     * 边的对顶点
     */
    private PointWithIndex verticalAngles;


    public Edge(PointWithIndex pointStart, PointWithIndex pointEnd, PointWithIndex verticalAngles) {
        this.pointStart = pointStart;
        this.pointEnd = pointEnd;
        this.verticalAngles = verticalAngles;
    }

    public PointWithIndex getPointEnd() {
        return pointEnd;
    }

    public PointWithIndex getPointStart() {
        return pointStart;
    }

    public PointWithIndex getVerticalAngles() {
        return verticalAngles;
    }

    @Override
    public String toString() {
        return "Edge{" +
                "pointStart=" + pointStart.getCoordinate() +
                ", pointEnd=" + pointEnd.getCoordinate() +
                '}';
    }
}
